package com.cfswt.tasksystem.pojo.dto;

import com.cfswt.tasksystem.pojo.entity.ContentSummary;
import com.cfswt.tasksystem.pojo.entity.TaskAttachment;
import com.cfswt.tasksystem.pojo.entity.TaskMilestone;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Accessors(chain = true)
@Data
public class ReleaseTaskDTO {
    private Integer id;
    private String sn;
    private Integer categoryId;
    private Integer parentId;
    private String title;
    private String releaseBy;
    private String reportBy;
    @JsonFormat(pattern = "yyyy/MM/dd", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    private String projectSn;
    private List<ContentSummary> contentSummaries;
    private List<TaskMilestone> taskMilestones;
    private List<TaskAttachment> releaseAttachments;
    private Integer score;
    private String comment;
    private String processInstanceId;
    private String frequency;
    private Integer reportCount;
    private Integer reportComplete;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date actualFinishingTime;
    private Integer statusId;
    private String host;//仅针对会议任务的字段
    private Integer decisionId;//仅针对会议任务的字段
    private Integer kpiDetailId;//仅针对Kpi任务的字段

}
